import pygame
from pygame.locals import *
from pygame.sprite import Sprite

class Ap(Sprite):
    def __init__(self, screen):
		pygame.mixer.init()
		self.image = pygame.image.load("ap.png").convert_alpha()
		self.rect = self.image.get_rect()
		self.screen = screen
		self.circle = Circle(10, (self.rect.width/2, self.rect.height/2), self.screen)
		self.deltaCircle = 10
	
    def update(self):		
		self.circle.resize(self.deltaCircle)

class Circle(Sprite):
	def __init__(self, size, position, where):
		self.size = size
		self.position = position
		self.where = where
		self.oSize = 10
	
	def paint(self):
		pygame.draw.circle(self.where, (0, 127, 255), self.position, self.size, 1)
	
	def resize(self, ammount):
		self.size %= 200
		self.size += ammount
